home *** CD-ROM | disk | FTP | other *** search
- Path: news.ucalgary.ca!news
- From: Charlotte Moller <cmoller@dbcorp.ab.ca>
- Newsgroups: comp.lang.c++
- Subject: Disappearing Wait Cursor
- Date: Tue, 16 Apr 1996 19:02:00 -0600
- Organization: The University of Calgary
- Message-ID: <31744308.6222@dbcorp.ab.ca>
- NNTP-Posting-Host: @sphomer2.dbcorp.ab.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- Disappearing wait cursor (hour-glass)
- -------------------------------------
-
- Has anyone ever come across this problem when developing Windows
- programs which access Oracle databases?
-
- When I have to perform an activity that I know is going to take a little
- while, I've being setting the wait cursor (hourglass) via the windows
- call hcursor = SetCursor(LoadCursor(NULL, IDC_WAIT)), and then restoring
- the cursor after the activity via SetCursor(hcursor). This appears to
- work fine, except when I am accessing the Orracle database via SQL*Net.
- Somewhere during the activity the wait cursor disappears! This happens
- with any time consuming database access. With a click happy user, the
- results are disastrous, usually ending in a GPF. I'm currently
- programming in Borland C++ 3.1 / OWL 1.0 using the CommonBase library
- (by ImageSoft) for database access, but I've seen this problem with
- other development environments (i.e. ObjectView, calls from a C++
- program to R&R ReportWriter). My best guess is SQL*Net does something
- nasty with the cursor, but a solution has thus far eluded me.
-
- Thanks :),
- Charlotte
-